//
//  RBCateListGridCell.m
//  zhongzhenglu
//
//  Created by XL on 2022/9/7.
//

#import "RBCateListGridCell.h"
#import "RBDefine.h"
#import "UIView+RBAdd.h"
#import <Masonry.h>
#import "RanTool.h"
#import <UIView+YYAdd.h>
#import <UIColor+YYAdd.h>
#import "RBThemeConfig.h"

@interface RBCateListGridCell()

@property(nonatomic, strong)IBOutlet UIImageView *goodsImgView;
@property(nonatomic, strong)IBOutlet UILabel *goodsNameL;
@property(nonatomic, strong)IBOutlet UILabel *goodsDesL;
@property(nonatomic, strong)IBOutlet UILabel *goodsPriceL;

@end

@implementation RBCateListGridCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self zoomSubViewsWithSelf];
}

- (void)setCellModel:(RBCellModel *)cellModel
{
    self.goodsPriceL.attributedText = [RanTool attributeStringMaker:^(NSMutableArray *maker) {
        [maker addAttributeStringWithFont:[UIFont systemFontOfSize:Zoom(11)] color:[RBThemeConfig priceRedColor] string:@"￥"];
        [maker addAttributeStringWithFont:[UIFont systemFontOfSize:Zoom(16)] color:[RBThemeConfig priceRedColor] string:@"2222.00"];
    }];
}

@end
